package controllers;

import helpers.RenderSitemap;
import models.App;
import models.AppGroup;
import models.Topic;
import play.mvc.Controller;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: GIPXY
 * Date: 5/14/13
 * Time: 2:31 PM
 * To change this template use File | Settings | File Templates.
 */
public class Sitemap extends Controller {
    public static void generate() {
        List<App> allApp = App.all(App.class).fetch();
        List<AppGroup> allAppGroup = AppGroup.all(AppGroup.class).fetch();
        List<Topic> allTopic = Topic.all(Topic.class).fetch();
        throw new RenderSitemap(allApp, allAppGroup, allTopic);
    }
}
